package com.ruoyi.hospital.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 医生专病关联对象 doctor_disease
 *
 * @author 天天困
 * @date 2025-08-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DoctorDisease extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;
    // 非表字段，用于显示医生对应疾病名称集合

    private List<String> diseaseNames;
    // 新增字段
    private String doctorName;
    private String diseaseName;
    /** 医生ID */
    @Excel(name = "医生ID")
    private Long doctorId;

    /** 疾病ID */
    @Excel(name = "疾病ID")
    private Long diseaseId;

    /** 删除标记：0未删除，1已删除 */
    private Integer del;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setDoctorId(Long doctorId)
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId()
    {
        return doctorId;
    }

    public void setDiseaseId(Long diseaseId)
    {
        this.diseaseId = diseaseId;
    }

    public Long getDiseaseId()
    {
        return diseaseId;
    }

    public void setDel(Integer del)
    {
        this.del = del;
    }

    public Integer getDel()
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("doctorId", getDoctorId())
            .append("diseaseId", getDiseaseId())
            .append("del", getDel())
            .toString();
    }
}
